<%--
  Created by IntelliJ IDEA.
  User: 徐洲
  Date: 2023/12/18
  Time: 11:14
  To change this template use File | Settings | File Templates.
--%>
<%
  request.setCharacterEncoding("UTF-8");
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>摆烂俱乐部后台主页</title>
  <!-- 导入 layui 的样式表 -->
  <link rel="stylesheet" href="../assets/lib/layui/css/layui.css" />
  <!-- 导入第三方图标库 -->
  <link rel="stylesheet" href="../assets/fonts/iconfont.css" />
  <!-- 导入自己的样式表 -->
  <link rel="stylesheet" href="../assets/css/index.css" />

  <!-- Favicon-->
  <link rel="shortcut icon" href="../favicon.png">
</head>

<%String admin_name = (String) session.getAttribute("admin_name");
Object admin_id = session.getAttribute("admin_id");
%>

<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
<%--    <div class="layui-logo">--%>
<%--      <img src="../assets/images/logo.png" alt="" />--%>
<%--    </div>--%>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;" class="userinfo">
          <img src="../img/logo-small.png" class="layui-nav-img" />
          <span class="text-avatar"><%=admin_name.charAt(0)%></span> 个人中心
        </a>
<%--        <dl class="layui-nav-child">--%>
<%--          <dd><a href="#" target="fm">基本资料</a></dd>--%>
<%--          <dd><a href="#" target="fm">更换头像</a></dd>--%>
<%--          <dd><a href="#" target="fm">重置密码</a></dd>--%>
<%--        </dl>--%>
      </li>
      <li class="layui-nav-item">
        <a href="out.jsp"><span class="iconfont icon-tuichu"></span>退出</a>
      </li>
    </ul>
  </div>

  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <div class="userinfo">
        <img src="../img/logo-small.png" class="layui-nav-img" />
        <span class="text-avatar"><%=admin_name.charAt(0)%></span>
        <span id="welcome">欢迎 <%=admin_name%></span>
      </div>
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-shrink="all">
        <li class="layui-nav-item layui-this">
          <a href="./home/dashboard.jsp" target="fm"><span class="iconfont icon-home"></span>首页</a>
        </li>
        <li class="layui-nav-item">
          <a class="" href="javascript:;"><span class="iconfont icon-16"></span>用户管理</a>
          <dl class="layui-nav-child">
            <!-- <dd>
                <a href="/article/art_cate.html" target="fm"><i class="layui-icon layui-icon-app"></i>用户列表</a>
            </dd> -->
            <dd>
              <a href="admin_userList.jsp" target="fm"><i class="layui-icon layui-icon-app"></i>用户列表</a>
            </dd>
<%--            <dd>--%>
<%--              <a href="#" target="fm"><i class="layui-icon layui-icon-app"></i>日志</a>--%>
<%--            </dd>--%>
            <!-- <dd>
                <a href="/article/art_pub.html" target="fm"><i class="layui-icon layui-icon-app"></i>添加</a>
            </dd> -->
          </dl>
        </li>

        <li class="layui-nav-item">
          <a href="javascript:;"><span class="iconfont icon-16"></span>文章类别</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="admin_category.jsp" target="fm"><i class="layui-icon layui-icon-app"></i>文章类别列表</a>
            </dd>
          </dl>
        </li>

<%--        未做--%>
<%--        <li class="layui-nav-item">--%>
<%--          <a href="javascript:;"><span class="iconfont icon-user"></span>个人中心</a>--%>
<%--          <dl class="layui-nav-child">--%>
<%--            <dd>--%>
<%--              <a href="#" target="fm"><i class="layui-icon layui-icon-app"></i>基本资料</a>--%>
<%--            </dd>--%>
<%--            <dd>--%>
<%--              <a href="#" target="fm"><i class="layui-icon layui-icon-app"></i>更换头像</a>--%>
<%--            </dd>--%>
<%--            <dd>--%>
<%--              <a href="#" target="fm"><i class="layui-icon layui-icon-app"></i>重置密码</a>--%>
<%--            </dd>--%>
<%--          </dl>--%>
<%--        </li>--%>

      </ul>
    </div>
  </div>

  <div class="layui-body">
    <!-- 内容主体区域 -->
    <iframe name="fm" src="./home/dashboard.jsp" frameborder="0"></iframe>
  </div>

  <div class="layui-footer">
    <!-- 底部固定区域 -->
    Copyright &copy; 2023. 摆烂俱乐部 All rights reserved.
  </div>
</div>
<!-- 导入 layui 的JS文件 -->
<script src="../assets/lib/layui/layui.all.js"></script>
<!-- 导入 jQuery -->
<script src="../assets/lib/jquery.js"></script>
</body>

</html>